//
//  common.swift
//  Webo
//
//  Created by 曾静 on 16/6/25.
//  Copyright © 2016年 qq. All rights reserved.
//

import UIKit

let switchVc = "switchVc"

let APPKEY = "3319409818"
let APPSECRET = "ec690a481fe1f31b7f858e6a2c39fd10"
let REDIRECT_URI = "http://www.baidu.com"

/// 屏幕的宽高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height
/// 主题颜色
let ThemeColor = UIColor.orangeColor()

func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}
func RandomColor()->UIColor{
    
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    
    return RGB(r, green: g, blue: b)
    
}